package java_DesignPattern.BehavioralPattern.VisitorPattern;

/**
 * 主人类---具体访问者类
 */
public class Owner implements Person {

    @Override
    public void visit(Cat cat) {
        System.out.println("主人访问猫");
    }

    @Override
    public void visit(Dog dog) {
        System.out.println("主人访问狗");
    }
}
